export default {
    namespaced: true,
    state: {
        // 登录状态
        isLoginStatus: localStorage.getItem('x-auth-token') ? true : false
    },
    mutations: {
        changeIsLoginStatus(state, payload) {
            state.isLoginStatus = payload
        }
    }
}

/* 
    vuex缺点：刷新 数据
*/